package com.frinder.official.runner;

import com.frinder.official.spring.Actors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * Created by frinder on 2017/9/13.
 * <p>
 * 测试 Follower
 */
@Component
public class FollowerRunner implements CommandLineRunner {

    @Autowired
    private Actors actors;

    @Override
    public void run(String... strings) throws Exception {
        actors.getActorRef("myActor", "follower-my-actor");
        actors.getActorRef("follower");
    }

}
